<!DOCTYPE html>
<html manifest="cache.manifest">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script src="js/cache.js"></script>
<script type="text/javascript">
function check(){
	alert(document.jsapplet.checkWifi());
}
</script>


<body>
<applet name="jsapplet" width="300" height="300" code="network.class">
      <param name="jnlp_href" value="test.jnlp">
   </applet>
<br><br>
<a onclick="check();">Check Wifi</a>

</body>
</html>